{extend name="admininfo/admininfo" /}
{block name='main'}
<form class="form-horizontal" action="{:url('admin/Role/add')}" method='post' enctype="multipart/form-data">

    <h3>添加角色</h3>
    <div class="modal-body">

        <table class="table table-bordered" >
              <tr>
                  <td>角色名</td>
                  <td><input type="text" name='name'}></td>
              </tr>
              <tr>
                  <td>角色权限</td>
                  <td>
                    {foreach $list as $v} 

                    <input type="checkbox" value='{$v["id"]}' name="{$v['id']}"> {$v['authorization']}

                    {/foreach}
                  </td>
              </tr>
              <tr>
                  <td>
                      <input type="submit">
                  </td>
              </tr>
        </form>
   
        
        </table>
    </div>



    {/block}
